/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidad;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author Stiv
 */
@Entity
public class Director extends Person {
    @OneToMany(mappedBy = "director")
    private List<Movie> movies = new ArrayList<Movie>();

    public Director(String nombre, String ape, File imagen, String fecha, String lugar, int id) {
        super(nombre, ape, imagen, fecha, lugar, id);
    }

    public Director() {
    }

    @Override
    public String toString() {
        return this.getNombre() +" " + this.getApellido();
    }
    
    
    
}
